import Vue from 'vue';
import Router from 'vue-router';
import Home from './views/home_page/index.vue';

Vue.use(Router);
console.log("process.env.BASE_URL:", process.env.BASE_URL)
export default new Router({
 // mode: 'history',
  // base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      children:[{
        path: '/',
        component: () => import('./views/home_page/wallet_mrg.vue')
      },{
        path: '/home/address',
        component: () => import('./views/home_page/wallet_address.vue')
      },{
        path: '/home/user',
        component: () => import('./views/home_page/wallet_user.vue')
      },{
        path: '/home/page',
        component: () => import('./views/home_page/Home.vue')
      },{
        path: '/home/order',
        component: () => import('./views/home_page/order_mrg/index.vue')
      },{
        path: '/home/details/:orderId',
        component: () => import('./views/home_page/order_mrg/order_details.vue')
      }]
    },
    {
      path: '/about',
      name: 'about',
      component: () => import(/* webpackChunkName: "about" */ './views/About.vue'),
    },
    {
      path: '/login',
      name: 'login',
      component: () => import(/* webpackChunkName: "about" */ './views/Login.vue'),
    },
  ],
});
